import 'package:flutter/material.dart';
import 'package:local_coffee/components/rgba.dart';
import 'package:local_coffee/pages/toolbar/menu/widgets/radius_btn.dart';
import 'package:local_coffee/utils/global.dart';

class RemarkRow extends StatelessWidget {
  
  final String title;
  final bool borderBottom;

  RemarkRow(
    this.title,
    {
      this.borderBottom = true
    }
  );

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(top: 20, bottom: 10),
      decoration: BoxDecoration(
        border: G.borderBottom(show: borderBottom)
      ),
      child: Column(
        mainAxisAlignment: MainAxisAlignment.start,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Container(
            margin: EdgeInsets.only(bottom: 10),
            child: Text(
              title,
              style: TextStyle(
                color: RGBA.rgba383838,
                fontSize: 14
              ),
            ),
          ),
          Row(
            children: <Widget>[
              RadiusBtn(
                '不需要',
                isActive: true,
              ),
              RadiusBtn('需要')
            ],
          )
        ],
      ),
    );
  }
}